<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    


<script>
    var num = 89
     
     var res1 = 89/24
     res2 = parseInt(res1)
     console.log(res2);


     res3 = 89%24
     console.log(res3);


     console.log(res2 + '天' + res3 + '小时');
     alert(res2 + '天' + res3 + '小时')
</script>
</body>
</html>